DATA README FILE: "FORECASTER (MIS-)BEHAVIOR"
/_data/

The .R and .m files in this folder create the figures and tables in Section 2, Section 4:Table II, Section 5:Figure 3, and Online Appendix B, D, and G. This readme file explains the mapping between these files, their output, and the figures and tables in the paper. 

The master file (data_master.R) runs all .R files, and produces all the RStudio output.  

The master file (data_master.m) runs all .m files, and produces all the MATLAB output.  

Please note that the different panels and sections of tables and figures may be estimated separately.
Stacking or concatenating the panels and sections creates the tables and figures shown in the paper. 

[1] TABLE FILES


| Table in Paper       | Program in Folder      | Comments   | Location of Table Output
| -------------------- | ---------------------- | -----------|----------------------------------------------------------		
| Figure 1 (bottom tab)| table_1_and_figure_1.R |            | /_tables/figure_1_bottom.txt
| Table I     	      | table_1_and_figure_1.R |            | /_tables/table_1.txt
| Table II     	      | table_2_top.m and      |            | /_tables/table_2_top.txt and 
|         	      | table_2_bottom.R       | C.1        | /_tables/table_2_bottom.R
| Table B.1     	      | figure_2_and_table_b1.R| C.2        | /_tables/table_b1_top.txt and /_tables/table_b1_bottom.txt 
| Table B.2     	      | table_b2.R             | C.3        | /_tables/table_b2_top.txt and /_tables/table_b2_bottom.txt 
| Table B.3     	      | table_b3.R             |            | /_tables/table_b3.txt 
| Table B.4     	      | table_b4.R             |            | /_tables/table_b4.txt 
| Table B.5     	      | table_b5.R             | C.4        | /_tables/table_b5_top.txt and /_tables/table_b5_bottom.txt 
| Table B.6     	      | table_b6.R             |            | /_tables/table_b6.txt 
| Table D.1     	      | table_d1.R             |            | /_tables/table_d1.txt 
| Table G.1     	      | table_g1.R             |            | /_tables/table_g1.txt 


C.1: Table II combines /_tables/table_2_top.txt with /_tables/table_2_bottom.txt
C.2: Table B.1 combines /_tables/table_b1_top.txt with /_tables/table_b1_bottom.txt
C.3: Table B.2 combines /_tables/table_b2_top.txt with /_tables/table_b2_bottom.txt
C.4: Table B.5 combines /_tables/table_b5_top.txt with /_tables/table_b5_bottom.txt



[2] FIGURE FILES

| Figures in Paper     | Program in Folder       | Comments   | Location of Figure Output
| -------------------- | ----------------------  | -----------|--------------------------------------------------------		
| Figure 1 (top fig)   | figure_1_top.R          | C.1        | /_figures/figure_1_lhs.pdf and /_figures/figure_1_rhs.pdf
| Figure 2    	      | figure_2_and_table_b1.R | C.2        | /_figures/figure_2_lhs.pdf and /_figures/figure_2_rhs.pdf
| Figure B.1           | figure_b1_1.R and       |            | /_figures/figure_b1_1.pdf and /_figures/figure_b1_2.pdf
|                      | figure_b1_2.R           | C.3        | /_figures/figure_b1_3.pdf and /_figures/figure_b1_4.pdf
| Figure 3             | figure_3_1.R and        |            | /_figures/figure_3_lhs.eps and 
|                      | figure_3_2.m            | C.4        | /_figures/figure_3_rhs.pdf 
| Figure B.2    	      | figure_b2.R             | C.5        | /_figures/figure_b2_lhs.pdf and /_figures/figure_b2_rhs.pdf

C.1: Figure 1 (top) combines /_figures/figure_1_lhs.pdf (left-hand panel) with /_figures/figure_1_rhs.pdf (right-hand panel) 
C.2: Figure 2 combines /_figures/figure_2_lhs.pdf with /_figures/figure_2_rhs.pdf
C.3: Figure B.1 combines /_figures/figure_b1_1.pdf, /_figures/figure_b1_2.pdf, /_figures/figure_b1_3.pdf, and /_figures/figure_b1_4.pdf 
C.4: Figure 3 combines /_figures/figure_3_lhs.eps with /_figures/figure_3_rhs.pdf 
C.5: Figure B.2 combines /_figures/figure_b2_lhs.pdf with /_figures/figure_b2_rhs.pdf
      

[3] AUXILIARY FILES

* packages_rstudio.R installs packages needed to run the .R files.


[4] NOTA BENE

Please note that: 
(i) Rounding of some estimates has taken place. 
(ii) Individual .R files automatically detect and set your working directory. Because RStudio locks this directory the first time that you run a file in a given folder, one has to restart RStudio before running .R files in another folder.


